<!DOCTYPE html>
<!-- saved from url=(0023)http://z-php.com/doc-17 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--strip_tags(htmlspecialchars_decode($cat['catname']))-->
  

  <title>Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="Z-PHP框架,简洁PHP框架,轻量级PHP框架,PHP微型框架,简单的PHP框架,国产PHP框架,中文PHP框架">
  <meta name="description" content="基于MVC模式的轻量级PHP框架，目录隔离，文件安全，数据库模型全部PDO数据绑定，数据安全">
  <link rel="stylesheet" href="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/layui.css">
  <link rel="stylesheet" href="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/global.css">
<link rel="stylesheet" href="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/editormd.preview.min.css"><style>
#custom-toc-container{width:auto;padding:10px 0;}
.fly-panel .fly-panel-title{text-align:center;font-size:18px;font-weight:bold;}
#editor{width:auto;font-size:1rem;}
.editormd-html-preview blockquote, .editormd-preview-container blockquote{background: #fff1f1;font-style: normal;font-size: 1rem;color:#f00;line-height:1.6rem;border-left: 4px solid #f00;}
.markdown-body ol, .markdown-body ul {padding-left: 1em;}
.fly-user-main>.layui-nav{width:255px;margin-left:20px;bottom:0;overflow-y:auto;padding:0;}
.fly-panel{border-radius:0;box-shadow:none;background:none;}
.fly-panel-user{padding:15px;}
@media screen and (min-width: 769px){
.fly-user-main>.fly-panel{margin-left:275px;}
}
@media screen and (max-width: 768px){
.fly-user-main>.layui-nav{margin-left:0;}
.fly-panel-user{padding:0;}
}
</style><script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/hm.js.下载"></script></head>


<body>
<style>
@media screen and (max-width: 768px) {
	#mb-nav-btn{display:inline !important;}
	.fly-logo{left:100px !important;}
}
.site-mobile-shade{display:none;content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.9); z-index: 99;}
.main-treenav{position: absolute;margin-left:0;top:61px;background:#393D49 !important;}
#mb-nav-btn i{font-size: 30px; color: #fff;}
#mb-nav-btn{position:absolute;left: 30px;top: 15px;display:none;}
</style>
<div class="fly-header layui-bg-black">
	<div class="layui-container">
		<a class="fly-logo" href="http://z-php.com/">
		  <img src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/logo.png" alt="layui">
		</a>
		<a id="mb-nav-btn"><i class="layui-icon"></i></a>
		<ul id="main-nav" class="layui-nav fly-nav layui-hide-xs">
			<li class="layui-nav-item ">
				<a href="http://z-php.com/"><i class="layui-icon"></i>首页</a>
			</li>
			<li class="layui-nav-item ">
				<a href="http://z-php.com/cat"><i class="layui-icon"></i>社区</a>
			</li>
			<li class="layui-nav-item layui-this">
				<a href="http://z-php.com/doc"><i class="layui-icon"></i>文档</a>
			</li>
			<li class="layui-nav-item ">
				<a href="http://z-php.com/diary"><i class="layui-icon"></i>日志</a>
			</li>
			<!--<li class="layui-nav-item layui-hide-xs">
				<a href=""><i class="layui-icon">&#xe601;</i>下载</a>
			</li>-->
		<span class="layui-nav-bar"></span></ul>
		<ul class="layui-nav fly-nav-user">
						<li class="layui-nav-item">
				<a class="iconfont icon-touxiang layui-hide-xs" href="http://z-php.com/login"></a>
			</li>
			<li class="layui-nav-item">
				<a href="https://www.z-php.com/login">登入</a>
			</li>
			<li class="layui-nav-item">
				<a href="https://www.z-php.com/login/reg">注册</a>
			</li>
					<span class="layui-nav-bar"></span></ul>
	</div>
</div>


<div class="fly-user-main">
	<ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
		<li class="layui-nav-item ">
			<a href="javascript:;">文 档<span class="layui-nav-more"></span></a>
			<dl class="layui-nav-child">
												<dd><a href="http://z-php.com/doc-1">开始</a></dd>
												<dd><a href="http://z-php.com/doc-2">目录结构</a></dd>
												<dd><a href="http://z-php.com/doc-3">配置文件</a></dd>
												<dd><a href="http://z-php.com/doc-4">常量</a></dd>
												<dd><a href="http://z-php.com/doc-5">视图</a></dd>
												<dd><a href="http://z-php.com/doc-6">控制器</a></dd>
												<dd><a href="http://z-php.com/doc-7">文件上传</a></dd>
												<dd><a href="http://z-php.com/doc-8">自动加载类文件</a></dd>
												<dd><a href="http://z-php.com/doc-9">路由</a></dd>
												<dd><a href="http://z-php.com/doc-10">图片验证码</a></dd>
												<dd><a href="http://z-php.com/doc-11">函数</a></dd>
												<dd><a href="http://z-php.com/doc-24">缓存</a></dd>
							</dl>
		</li>
		<li class="layui-nav-item layui-nav-itemed">
			<a href="javascript:;">数据模型<span class="layui-nav-more"></span></a>
			<dl class="layui-nav-child">
												<dd><a href="http://z-php.com/doc-12">基本操作</a></dd>
												<dd><a href="http://z-php.com/doc-13">数据添加</a></dd>
												<dd><a href="http://z-php.com/doc-14">数据删除</a></dd>
												<dd><a href="http://z-php.com/doc-15">数据更新</a></dd>
												<dd><a href="http://z-php.com/doc-16">数据查询</a></dd>
												<dd class="layui-this"><a href="http://z-php.com/doc-17">where条件</a></dd>
												<dd><a href="http://z-php.com/doc-18">自动验证</a></dd>
												<dd><a href="http://z-php.com/doc-19">数据分页</a></dd>
												<dd><a href="http://z-php.com/doc-20">子查询</a></dd>
												<dd><a href="http://z-php.com/doc-22">原生SQL语句的使用</a></dd>
												<dd><a href="http://z-php.com/doc-23">数据缓存</a></dd>
												<dd><a href="http://z-php.com/doc-25">连接Sqlite</a></dd>
							</dl>
		</li>
		
		<div class="fly-panel" style="background:#fff;margin-bottom:50px;padding-right:10px;">
			<h1 class="fly-panel-title">内 文 索 引</h1>
			<div class="markdown-body editormd-preview-container" id="custom-toc-container" previewcontainer="false"><div class="markdown-toc editormd-markdown-toc"><ul class="markdown-toc-list"><li><a class="toc-level-2" href="http://z-php.com/doc-17#%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C" level="2">基本操作</a></li><li><a class="toc-level-2" href="http://z-php.com/doc-17#%E8%BF%9E%E6%8E%A5%E5%A4%9A%E4%B8%AA%E6%9D%A1%E4%BB%B6" level="2">连接多个条件</a></li><li><a class="toc-level-2" href="http://z-php.com/doc-17#%E4%BD%BF%E7%94%A8%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%8F%82%E6%95%B0" level="2">使用字符串参数</a><ul></ul></li></ul></div></div>
		</div>
	<span class="layui-nav-bar" style="top: 67.5px; height: 0px; opacity: 0;"></span></ul>
	<div class="site-tree-mobile layui-hide">
		<i class="layui-icon"></i>
	</div>
	<div class="fly-panel fly-panel-user">
		<div id="editor" class="editor markdown-body editormd-html-preview">
			
		<blockquote>
<p>where 条件设计稍微有点复杂，所以单独拿出来<br>多数情况下使用数组参数即可满足要求<br>在实现复杂的where条件时，如果数组参数满足不了要求，可以使用字符串参数<br>字符串参数 框架将不做解析，直接交给PDO处理<br>在书写字符串参数时应尽量遵循SQL的书写规范
</p></blockquote>
<h2 id="h2-u57FAu672Cu64CDu4F5C"><a name="基本操作" class="reference-link"></a><span class="header-link octicon octicon-link"></span>基本操作</h2><pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">          </span><span class="com">// where `id`=10;   等于</span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &gt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">        </span><span class="com">// where `id`&gt;10;   大于</span></code></li><li class="L2"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &lt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">        </span><span class="com">//where `id`&lt;10;    小于</span></code></li><li class="L3"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &gt;='</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">       </span><span class="com">//where `id`&gt;=10;   大于等于</span></code></li><li class="L4"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &lt;='</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">       </span><span class="com">//where `id`&lt;=10;   小于等于</span></code></li><li class="L5"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &lt;&gt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">       </span><span class="com">//where `id`&lt;&gt;10;   不等于</span></code></li></ol></pre><p><strong>IN 和 NOT IN</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="lit">2</span><span class="pun">,</span><span class="lit">4</span><span class="pun">,</span><span class="lit">6</span><span class="pun">,</span><span class="lit">8</span><span class="pun">];</span><span class="pln">          </span><span class="com">//where `id` IN(2,4,6,8); </span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id IN'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="lit">2</span><span class="pun">,</span><span class="lit">4</span><span class="pun">,</span><span class="lit">6</span><span class="pun">,</span><span class="lit">8</span><span class="pun">];</span><span class="pln">       </span><span class="com">//同上 指定操作符是'IN'</span></code></li><li class="L2"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id NOT IN'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="lit">2</span><span class="pun">,</span><span class="lit">4</span><span class="pun">,</span><span class="lit">6</span><span class="pun">,</span><span class="lit">8</span><span class="pun">];</span><span class="pln">   </span><span class="com">//where `id` NOT IN(2,4,6,8)</span></code></li></ol></pre><p><strong>BETWEEN 和 NOT BETWEEN</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id BETWEEN'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="lit">1</span><span class="pun">,</span><span class="lit">10</span><span class="pun">]</span><span class="pln">        </span><span class="com">//WHERE `id` BETWEEN 1 AND 10</span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id NOT BETWEEN'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="lit">1</span><span class="pun">,</span><span class="lit">10</span><span class="pun">]</span><span class="pln">    </span><span class="com">//WHERE `id`  NOT BETWEEN 1 AND 10</span></code></li></ol></pre><p><strong>LIKE</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'name LIKE'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="str">'%tom%'</span><span class="pln">         </span><span class="com">//WHERE `name` LIKE %tom%</span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'name'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="str">'%tom%'</span><span class="pln">              </span><span class="com">//WHERE `name` LIKE %tom%</span></code></li></ol></pre><p><strong>多个字段对应同一个值的情况：</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id|uid'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span><span class="pln">          </span><span class="com">//where `id`=10 OR `uid`=10</span></code></li></ol></pre><h2 id="h2-u8FDEu63A5u591Au4E2Au6761u4EF6"><a name="连接多个条件" class="reference-link"></a><span class="header-link octicon octicon-link"></span>连接多个条件</h2><p><strong>默认使用 AND 连接多个条件</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &gt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'pot &gt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">100</span><span class="pun">;</span></code></li><li class="L2"><code><span class="com">//...更多</span></code></li><li class="L3"><code><span class="kwd">where</span><span class="pln"> </span><span class="str">`id`</span><span class="pun">&gt;</span><span class="lit">10</span><span class="pln"> AND </span><span class="str">`pot`</span><span class="pun">&gt;</span><span class="lit">100</span><span class="pln"> AND </span><span class="pun">...更多</span><span class="pln">     </span><span class="com">//合并后的条件</span></code></li></ol></pre><p><strong>OR</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'id &gt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">10</span><span class="pun">;</span></code></li><li class="L1"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'pid &lt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="str">'OR'</span><span class="pun">,</span><span class="lit">20</span><span class="pun">];</span></code></li><li class="L2"><code><span class="pln">WHERE </span><span class="str">`id`</span><span class="pun">&gt;</span><span class="lit">10</span><span class="pln"> OR </span><span class="str">`pid`</span><span class="pun">&lt;</span><span class="lit">20</span><span class="pln">       </span><span class="com">//合并后的语句</span></code></li><li class="L3"><code></code></li><li class="L4"><code><span class="pun">也可以这么写：</span></code></li><li class="L5"><code><span class="pln">$where</span><span class="pun">[</span><span class="str">'OR pid &lt;'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="lit">20</span><span class="pun">;</span></code></li><li class="L6"><code></code></li><li class="L7"><code><span class="pun">也可以写在一个数组里面</span></code></li><li class="L8"><code><span class="pln">$where </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="str">'id &gt;'</span><span class="pun">=&gt;</span><span class="lit">10</span><span class="pun">,</span><span class="str">'OR pid &lt;'</span><span class="pun">=&gt;</span><span class="lit">20</span><span class="pun">];</span></code></li></ol></pre><blockquote>
<p>where条件可以多次调用以应对稍微复杂一点的条件</p>
</blockquote>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$m </span><span class="pun">=</span><span class="pln"> D</span><span class="pun">(</span><span class="str">'user'</span><span class="pun">);</span></code></li><li class="L1"><code><span class="pln">$where1 </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="str">'id &gt;'</span><span class="pun">=&gt;</span><span class="lit">10</span><span class="pun">,</span><span class="str">'OR pot &gt;'</span><span class="pun">=&gt;</span><span class="lit">100</span><span class="pun">];</span></code></li><li class="L2"><code><span class="pln">$where2 </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="str">'OR pid &lt;'</span><span class="pun">=&gt;</span><span class="pln"> </span><span class="lit">20</span><span class="pun">];</span></code></li><li class="L3"><code><span class="pln">$user </span><span class="pun">=</span><span class="pln"> $m</span><span class="pun">-&gt;</span><span class="kwd">where</span><span class="pun">(</span><span class="pln">$where1</span><span class="pun">)-&gt;</span><span class="kwd">where</span><span class="pun">(</span><span class="pln">$where2</span><span class="pun">)-&gt;</span><span class="kwd">select</span><span class="pun">();</span></code></li><li class="L4"><code><span class="com">//两次调用where()函数合并之后的 where 条件：</span></code></li><li class="L5"><code><span class="pln">WHERE </span><span class="pun">(</span><span class="str">`id `</span><span class="pun">&gt;</span><span class="lit">10</span><span class="pln"> OR </span><span class="str">`pot `</span><span class="pun">&gt;</span><span class="lit">100</span><span class="pun">)</span><span class="pln"> OR </span><span class="pun">(</span><span class="str">`pid`</span><span class="pun">&lt;</span><span class="lit">20</span><span class="pun">)</span></code></li></ol></pre><h2 id="h2-u4F7Fu7528u5B57u7B26u4E32u53C2u6570"><a name="使用字符串参数" class="reference-link"></a><span class="header-link octicon octicon-link"></span>使用字符串参数</h2><p><strong>框架不做解析，也不绑定参数，需注意语句安全</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$where </span><span class="pun">=</span><span class="pln"> </span><span class="str">"`id`&gt;10 AND `pot`&gt;100"</span><span class="pun">;</span></code></li></ol></pre><p><strong>绑定参数的方式：</strong></p>
<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="pln">$m </span><span class="pun">=</span><span class="pln"> D</span><span class="pun">(</span><span class="str">'user'</span><span class="pun">);</span></code></li><li class="L1"><code><span class="pln">$where </span><span class="pun">=</span><span class="pln"> </span><span class="str">"`id`&gt;:id AND `pot`&gt;:pot"</span><span class="pun">;</span><span class="pln">          </span><span class="com">//将参数绑定到 :id 和 :pot 上</span></code></li><li class="L2"><code><span class="pln">$arr </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="str">':id'</span><span class="pun">=&gt;</span><span class="lit">10</span><span class="pun">,</span><span class="str">':pot'</span><span class="pun">=&gt;</span><span class="lit">100</span><span class="pun">];</span><span class="pln">              </span><span class="com">//给绑定参数赋值</span></code></li><li class="L3"><code><span class="pln">$user </span><span class="pun">=</span><span class="pln"> $m</span><span class="pun">-&gt;</span><span class="kwd">where</span><span class="pun">(</span><span class="pln">$where</span><span class="pun">,</span><span class="pln">$arr</span><span class="pun">)-&gt;</span><span class="kwd">select</span><span class="pun">();</span><span class="pln">    </span><span class="com">//$arr作为第二个参数传入where函数</span></code></li></ol></pre></div>
	</div>
</div>
<div class="fly-footer">
	<p>
		2017-2019 © 
		<a href="http://www.z-php.com/" target="_blank">Z-PHP 框架</a>
		<a href="http://beian.miit.gov.cn/" target="_blank">鲁ICP备17013715号</a>
		<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37030402000284" target="_blank"><img src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/gongan.png">鲁公网安备 37030402000284号</a>
	</p>
</div>
<div class="site-mobile-shade"></div>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/jquery.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/layui.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/z.js.下载"></script>
<script>
var USER = {"userid":0,"auth":[]};
	CONF = {cid:0,aid:0,app:"index",d_headimg:"/res/index/default/images/avatar/default.png"};
	ROUTE = {"cat":["topic","index","cid"],"art":["topic","art","cid","aid"],"tad":["art","add","cid"],"rad":["reply","add","aid"],"edit":["art","edit","cid","aid"],"user":["user","index","userid"],"doc":["doc","index","aid"]};
	Z.init(ROUTE,{delimit:'-',mod:3});
layui.config({
  version: "3.0.0"
  ,base: '/res/index/default/mods/'
}).use(['util','element'],function(){
	var element = layui.element,
		util = layui.util;
		util.fixbar({
			bgcolor: '#009688'
		});
//手机设备的简单适配
	var treeMobile = $('.site-tree-mobile')
		,shadeMobile = $('.site-mobile-shade');

	treeMobile.on('click', function(){
		$('body').addClass('site-mobile');
		$('.site-mobile-shade').show();
	});

	shadeMobile.on('click', function(){
		$('.site-mobile-shade').hide();
		$('body').removeClass('site-mobile');
		$('#main-nav').removeClass('layui-nav-tree');
		$('#main-nav').removeClass('main-treenav');
		$('#main-nav').addClass('layui-hide-xs');
	});
	$('#mb-nav-btn').click(function(event){
		$('.site-mobile-shade').show();
		$('#main-nav').addClass('layui-nav-tree');
		$('#main-nav').addClass('main-treenav');
		$('#main-nav').removeClass('layui-hide-xs');
	})
	//显示当前tab
	if(location.hash){
		element.tabChange('user', location.hash.replace(/^#/, ''));
	}
	element.on('tab(user)', function(){
		var othis = $(this), layid = othis.attr('lay-id');
		if(layid) location.hash = layid;
	});
});
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?4b535bb55c2c9d4e336ab6972fa72f89";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>



<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/marked.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/prettify.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/raphael.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/underscore.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/sequence-diagram.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/flowchart.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/jquery.flowchart.min.js.下载"></script>
<script src="./Z-PHP框架.国产简单轻便安全易用速度快-文档-where条件_files/editormd.min.js.下载"></script>
<script>
	var options = {
			markdown:$('editor').html(),
			width: "100%",
			height: '100%',
			path : '/res/static/mdEditor/lib/',
			codeFold : true,
			searchReplace : true,
			htmlDecode : "style,script,iframe|on*",            // 开启 HTML 标签解析，为了安全性，默认不开启    
			emoji : true,
			taskList : true,
			tocm            : true,         // Using [TOCM]
			tocContainer    : "#custom-toc-container",
		};
		editor = editormd.markdownToHTML('editor',options);
		console.log(editor);
</script><ul class="layui-fixbar"><li class="layui-icon layui-fixbar-top" lay-type="top" style="background-color: rgb(0, 150, 136); display: none;"></li></ul></body></html>